<?php slot('bannerCycle') ?>
<?php if($banners):?>
    <div id="slider" class="picture-frame big p3">
        <?php foreach($banners as $key=>$banner): ?>
            <div class="slide">
                <a href="<?php echo $banner['link']; ?>"><img src="<?php echo @myPicture::getInstance( $banner->getPicture() )->thumbnail(380,230,'center')->url()  ?>" alt="<?php echo $banner['name']; ?>" /></a>
                <p><a href="<?php echo $banner['link']; ?>"><?php echo $banner['name']; ?></a></p>
            </div>
        <?php endforeach; ?>
    </div>
<script type="text/javascript">
$('#slider').cycle({
    pause: 1
});
</script>
<?php endif; ?>
<?php end_slot() ?>

